package com.ruoyi.mapper;

import com.ruoyi.domain.UserHealthData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDateTime;

@Mapper
public interface UserHealthDataMapper {
    void insertData(
            @Param("data") UserHealthData data,
            @Param("type") String type
    );

    Integer exists( // 使用包装类型
                    @Param("userId") Long userId,
                    @Param("time") LocalDateTime time,
                    @Param("type") String type
    );
}
